//package cn.com.utt.common.util;
//
//import java.io.IOException;
//import java.net.InetSocketAddress;
//import javax.annotation.Resource;
//import org.springframework.boot.CommandLineRunner;
//import org.springframework.stereotype.Component;
//import net.spy.memcached.MemcachedClient;
//
//@Component
//public class MemcachedRunner implements CommandLineRunner {
//
//	@Resource
//	private MemcacheSource memcacheSource;
//
//	private MemcachedClient client = null;
//
//	@Override
//	public void run(String... args) throws Exception {
//		try {
//			client = new MemcachedClient(new InetSocketAddress(memcacheSource.getIp(), memcacheSource.getPort()));
//		} catch (IOException e) {
//			e.printStackTrace();
//		}
//	}
//
//	public MemcachedClient getClient() {
//		return client;
//	}
//
//}
